package top.dingwen.io.treasure.websocket.core;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 消息对象
 *
 * @author dingwen
 * @since  2024/10/16
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WebSocketMsg implements Serializable {

    /**
     * 需要推送到的session key 列表
     */
    private List<String> sessionKeys;

    /**
     * 需要发送的消息
     */
    private String message;

    /**
     * 消息key(业务类型)
     */
    private String messageKey;

    private static final long serialVersionUID = -2988957054622939844L;
}
